package org.example.project;

public class Document {
    private final String uri;
    private String text;
    private final String languageId;
    private int version;

    public Document(String uri, String text, String languageId, int version) {
        this.uri = uri;
        this.text = text;
        this.languageId = languageId;
        this.version = version;
    }

    public void updateText(String text) {
        this.text = text;
    }

    public String getText() {
        return text;
    }
}
